package modelo

trait ConTecho extends Cancha{
  
  var ser:ServicioMeteorologico = new ServicioMeteorologico
  
  abstract override def calcularPrecio(reserva:Reserva) : Double = {
    if(ser.vaALlover){
      super.calcularPrecio(reserva) * 1.1
    }  
     else {
        this.precio
     }
  }
}
